package com.nbjtjc.safe.wps.controller;

import com.nbjtjc.safe.bean.Result;
import com.nbjtjc.safe.wps.service.WpsFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/wps/file")
@CrossOrigin("*")
public class WpsFileController {



    @Autowired
    private WpsFileService wpsFileService;


    @RequestMapping("/getViewUrl")
    public Map<String,Object> getViewUrl(int fileId,int userId){
        return wpsFileService.getViewUrl(fileId,userId);
    }
}
